package chapter2;
import java.util.Calendar;
import java.util.Date;
public class Day02 {
    public static void main(String[] args){
        long today=0;
        Calendar cal= Calendar.getInstance();
        cal.setTime(new Date());
        today = cal.getTimeInMillis();
        cal.clear();
        cal.setTime(new Date("2012/12/21"));
        System.out.println("距离2012.12.21世界末日过去"+(today-cal.getTimeInMillis())/(24*3600*1000)+"天!");

    }
}
